package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.qingxin.sys.entity.BaseEntity;


/**
 * 种植信息
 * @author Administrator
 *
 */
@Entity
@Table(name = "park_block_plant_view")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class ParkBlockPlantView extends BaseEntity implements java.io.Serializable {
	private static final long serialVersionUID = -4703277579208578011L;

	private String plantid;
	private String cropid;
	private String cropName;
	private Date beginTime;
	private Date endTime;
	private String isCurrent;
	private String plantStatus;
	private String isdel;
	private Date createTime;
	private String blockid;
	private String blockCode;
	private String blockName;
	private String isuse;//0:闲置中1:使用中
	private String parkid;
	private String parkNo;
	private String parkName;
	private Integer parkLevel;
	private String parkStatus;//1正常2停用3删除
	private String plantType;//类型：1种植、2养殖、 
	public ParkBlockPlantView() {
	}
	
	
	public ParkBlockPlantView(String plantid, String cropName, Date beginTime,
			Date endTime, String isCurrent, String plantStatus,
			String blockName, String isuse) {
		this.plantid = plantid;
		this.cropName = cropName;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.isCurrent = isCurrent;
		this.plantStatus = plantStatus;
		this.blockName = blockName;
		this.isuse = isuse;
	}



	@Id
	@Column(name = "plantid", unique = true, nullable = false, length = 32)
	public String getPlantid() {
		return this.plantid;
	}
	public void setPlantid(String plantid) {
		this.plantid = plantid;
	}
	
	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return this.cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "crop_name", length = 50)
	public String getCropName() {
		return this.cropName;
	}

	public void setCropName(String cropName) {
		this.cropName = cropName;
	}

	@Column(name = "begin_time", length = 23)
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	@Column(name = "end_time", length = 23)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "is_current", length = 1)
	public String getIsCurrent() {
		return this.isCurrent;
	}

	public void setIsCurrent(String isCurrent) {
		this.isCurrent = isCurrent;
	}

	@Column(name = "plant_status", length = 1)
	public String getPlantStatus() {
		return this.plantStatus;
	}

	public void setPlantStatus(String plantStatus) {
		this.plantStatus = plantStatus;
	}
	
	@Column(name = "isdel", length = 1)
	public String getIsdel() {
		return isdel;
	}

	public void setIsdel(String isdel) {
		this.isdel = isdel;
	}


	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	@Column(name = "blockid", nullable = false, length = 32)
	public String getBlockid() {
		return this.blockid;
	}

	public void setBlockid(String blockid) {
		this.blockid = blockid;
	}
	
	@Column(name = "block_code", length = 20)
	public String getBlockCode() {
		return this.blockCode;
	}

	public void setBlockCode(String blockCode) {
		this.blockCode = blockCode;
	}

	@Column(name = "block_name", length = 50)
	public String getBlockName() {
		return this.blockName;
	}

	public void setBlockName(String blockName) {
		this.blockName = blockName;
	}

	@Column(name = "isuse", length = 1)
	public String getIsuse() {
		return this.isuse;
	}

	public void setIsuse(String isuse) {
		this.isuse = isuse;
	}
	
	@Column(name = "parkid", nullable = false, length = 32)
	public String getParkid() {
		return this.parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}
	
	@Column(name = "park_no", length = 20)
	public String getParkNo() {
		return this.parkNo;
	}

	public void setParkNo(String parkNo) {
		this.parkNo = parkNo;
	}

	@Column(name = "park_name", length = 100)
	public String getParkName() {
		return this.parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}
	
	@Column(name = "park_level")
	public Integer getParkLevel() {
		return this.parkLevel;
	}

	public void setParkLevel(Integer parkLevel) {
		this.parkLevel = parkLevel;
	}

	@Column(name = "park_status", length = 1)
	public String getParkStatus() {
		return this.parkStatus;
	}

	public void setParkStatus(String parkStatus) {
		this.parkStatus = parkStatus;
	}
	
	@Column(name = "plant_type", length = 1)
	public String getPlantType() {
		return plantType;
	}

	public void setPlantType(String plantType) {
		this.plantType = plantType;
	}
	
	
}
